import 'package:boss/textStyle/text_style.dart';
import 'package:boss/ui/widget/image/base_image.dart';
import 'package:boss/ui/widget/shadow_radius_card.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';

class TableManagementPlusTableCard extends StatelessWidget {
  final VoidCallback onTap;

  const TableManagementPlusTableCard({Key key, this.onTap}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onTap,
      behavior: HitTestBehavior.translucent,
      child: ShadowRadiusCard(
        alignment: Alignment.center,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
          children: <Widget>[
            BaseImage(
              'assets/image/small_plus_icon.png',
              width: 30.w,
              height: 30.w,
            ),
            Text(
              '新增桌台',
              style: TextStyleConstant().blue_28,
            ),
          ],
        ),
      ),
    );
  }
}
